package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 广告用户表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-08
 */
@TableName("wz_adv_user")
public class WzAdvUser extends Model<WzAdvUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "adv_user_id", type = IdType.AUTO)
    private Long advUserId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 广告id
     */
    @TableField("adv_id")
    private String advId;
    /**
     * 广告封面图
     */
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 是否有详情：0-没有；1-有
     */
    @TableField("has_detail")
    private Integer hasDetail;
    /**
     * 调查问卷id
     */
    @TableField("questionnaire_id")
    private String questionnaireId;
    /**
     * 标题
     */
    private String title;
    /**
     * 子类型：1-广告；2-调查问卷；3-新闻；
     */
    private Integer subtype;


    public Long getAdvUserId() {
        return advUserId;
    }

    public void setAdvUserId(Long advUserId) {
        this.advUserId = advUserId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getAdvId() {
        return advId;
    }

    public void setAdvId(String advId) {
        this.advId = advId;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Integer getHasDetail() {
        return hasDetail;
    }

    public void setHasDetail(Integer hasDetail) {
        this.hasDetail = hasDetail;
    }

    public String getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(String questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    @Override
    protected Serializable pkVal() {
        return this.advUserId;
    }

    @Override
    public String toString() {
        return "WzAdvUser{" +
        "advUserId=" + advUserId +
        ", userCode=" + userCode +
        ", advId=" + advId +
        ", coverUrl=" + coverUrl +
        ", hasDetail=" + hasDetail +
        ", questionnaireId=" + questionnaireId +
        ", title=" + title +
        ", subtype=" + subtype +
        "}";
    }
}
